home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / plnk081.zip / pilot-link.0.8.1 / include / pi-address.h next >
C/C++ Source or Header  |  1997-08-03  |  1KB  |  49 lines

  1. #ifndef _PILOT_ADDRESS_H_
  2. #define _PILOT_ADDRESS_H_
  3.  
  4. #include "pi-args.h"
  5. #include "pi-appinfo.h"
  6.  
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10.  
  11. enum { entryLastname, entryFirstname, entryCompany, 
  12.        entryPhone1, entryPhone2, entryPhone3, entryPhone4, entryPhone5,
  13.        entryAddress, entryCity, entryState, entryZip, entryCountry, entryTitle,
  14.        entryCustom1, entryCustom2, entryCustom3, entryCustom4,
  15.        entryNote
  16. };
  17.  
  18. struct Address {
  19.   int phoneLabel[5];
  20.   int showPhone;
  21.   
  22.   char *entry[19];
  23. };
  24.  
  25. struct AddressAppInfo {
  26.   struct CategoryAppInfo category;
  27.   char labels[19+3][16]; /* Hairy to explain, obvious to look at */
  28.   int labelRenamed[19+3]; /* list of booleans showing which labels were modified */
  29.   char phoneLabels[8][16]; /* Duplication of some labels, to
  30.                               greatly reduce hair */
  31.   int country;
  32.   int sortByCompany;
  33. };
  34.  
  35. extern void free_Address PI_ARGS((struct Address *));
  36. extern int unpack_Address PI_ARGS((struct Address *, unsigned char * record, int len));
  37. extern int pack_Address PI_ARGS((struct Address *, unsigned char * record, int len));
  38. extern int unpack_AddressAppInfo PI_ARGS((struct AddressAppInfo *, unsigned char * AppInfo, int len));
  39. extern int pack_AddressAppInfo PI_ARGS((struct AddressAppInfo *, unsigned char * AppInfo, int len));
  40.  
  41. #ifdef __cplusplus
  42. }
  43.  
  44. #include "pi-address.hxx"
  45.  
  46. #endif /* __cplusplus */
  47.  
  48. #endif /* _PILOT_ADDRESS_H_ */
  49.